package com.fr.report.core.headerfooter;

import java.awt.Graphics2D;
import java.awt.geom.Point2D;

public class ImageHFPaintable extends AbstractHFPaintable
{
  private ImageHFElement imageHFElement;

  public ImageHFPaintable(ImageHFElement paramImageHFElement)
  {
    this.imageHFElement = paramImageHFElement;
  }

  public ImageHFPaintable(Point2D paramPoint2D, ImageHFElement paramImageHFElement)
  {
    super(paramPoint2D);
    this.imageHFElement = paramImageHFElement;
  }

  public HFElement getHFElement()
  {
    return this.imageHFElement;
  }

  public void paint(Graphics2D paramGraphics2D)
  {
    paramGraphics2D.drawImage(this.imageHFElement.getImage(), (int)getPaintLocation().getX(), (int)getPaintLocation().getY(), this.imageHFElement.getWidth(), this.imageHFElement.getHeight(), null);
  }
}